﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smoo.FolderMonitor
{
    public static class RepositoryFactory
    {
        public static IFoldersRepository FoldersRepository()
        {
            // TODO: refactor to use dependancy injection
            Type objType = Type.GetType(string.Format("{0}, {1}", Globals.FoldersRepositoryClass, Globals.FoldersRepositoryAssembly));
            return (IFoldersRepository)Activator.CreateInstance(objType);
        }
    }
}
